package com.qf.dao.impl;

import com.qf.dao.DaoModify;
import com.qf.domain.Student;
import com.qf.utils.JDBCUtils2;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;

import java.util.jar.JarException;

public class DaoModifyImpl implements DaoModify {
 JdbcTemplate jd=new JdbcTemplate(JDBCUtils2.getDs());
    @Override
    public Student modifyidd(int id) {
        String sql="select * from ya where id=?";
        Student student = jd.queryForObject(sql, new BeanPropertyRowMapper<Student>(Student.class), id);
        return student;
    }
}
